package com.jctrip.hotel.management.model.result;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * @Author: zxy
 * @CreateTime: 2023-09-01 16:55
 * @Description:
 */
@Data
@Builder
public class GetExportListResult {
    @ApiModelProperty("任务列表")
    private List<TaskInfo> records;

    @ApiModelProperty("总页数")
    private Long pages;

    @ApiModelProperty("总数")
    private Long total;

    @ApiModelProperty("页码")
    private Long current;

    @ApiModelProperty("页面大小")
    private Long size;

    @Data
    @Builder
    @ApiModel("任务对象")
    public static class TaskInfo {
        private String id;

        private String fileName;

        private Integer fileStatus;

        @JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8")
        private Date createTime;
    }
}
